# coding: utf-8
"""
@python version : python3.10
@file name      : urls.py
@date           : 2024/4/26 10:28
@author         : ziyang.yang@aliyun.com
@gitee          : https://gitee.com/ziyangyang1318
@blog           : www.yangziyang.top
@describe       : 
"""
from django.urls import path, re_path, include
from .views import BookView, LoginView, BookFilterView,UserView
from rest_framework_simplejwt.views import TokenObtainPairView

urlpatterns = [
    path('book/', BookView.as_view()),
    path('login/', LoginView.as_view()),
    # path('books/', BookFilterView.as_view({"get": "list"})),
    path('books/', BookFilterView.as_view()),
    path('jwtlogin/', TokenObtainPairView.as_view(),name='token_obtain_pair'),
    path('user/login/',UserView.as_view())

]
